import 'package:flutter/material.dart';

class TestDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("TestDemo"),
        elevation: 0.0,
      ),
      body: TestDemoHome(),
    );
  }
}

class TestDemoHome extends StatefulWidget {
  TestDemoHome({Key key}) : super(key: key);

  @override
  _TestDemoHomeState createState() => _TestDemoHomeState();
}

class _TestDemoHomeState extends State<TestDemoHome> {

  int _count = 0;

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Chip(
         label: Text("hello"),
        ),
        SizedBox(width: 16.0),
        ActionChip(
          key: Key("actionChip"),
          label: Text("$_count", key: Key("actionChipLabelText"),), 
          onPressed: () {
            setState(() {
              _count += 1;
            });
          },
        ),
      ]
    );
  }
}

class MyTestDemo {
  static greet(String name) {
    return 'hello $name';
  }
}